using UnityEngine;
using UnityEngine.Tilemaps;

[CreateAssetMenu(menuName = "建筑/新增可建造物品")]
// 这个类表示可建造物品
[SerializeField]
public class BuildableItem : ScriptableObject
{
    // 可建造物品的名称
    [field: SerializeField]
    public string Name { get; private set; }

    // 可建造物品的瓦片表示
    [field: SerializeField]
    public TileBase Tile { get; private set; }

    //偏移量
    [field:SerializeField]
    public Vector3 TileOffset { get; private set; }

    //预览图片
    [field:SerializeField]
    public Sprite PreviewSprite { get; private set; }

    //预制体对象
    [field:SerializeField]
    public GameObject gameObject {get; private set;}

    //是否使用自定义碰撞空间
    [field:SerializeField]
    public bool UseCustomCollisionSpace {get; private set;}

    //碰撞空间
    [field:SerializeField]
    public RectInt CollisionSpace {get; private set;}
}